/**
 * @생성일 : 2011. 9. 14.
 * @package : com.luffy.message.model
 * 
 *
 */
package com.luffy.message.model;

import com.thoughtworks.xstream.annotations.XStreamAlias;

/**
 * <pre>
 * 역할적기.
 * </pre>
 * @작성자 : Administrator
 * @작성일 : 2011. 9. 14.
 * @package : com.luffy.message.model
 *
 */
@XStreamAlias("error")
public class ErrorMessage {
	private String code;
	private String message;

	public ErrorMessage(ErrorCode errorCode) {
		code = errorCode.getCode();
		message = errorCode.getMessage();
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getCode() {
		return code;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getMessage() {
		return message;
	}

}
